#include "../lib/def.h"

#pragma pack(1)

typedef struct {
    struct{
        WORD wJump;
        BYTE bSign;
    }fwJump;
    QWORD qwOEMID;
    WORD wBytesPerSector;
    BYTE bSectorsPerCluster;
    WORD wReservedSector;
    BYTE bFATNumber;
    WORD wReserved1;
    WORD wReserved2;
    BYTE bMediaDescriptor;
    WORD wReserved3;
    WORD wSectorsPerTrack;
    WORD wNumberOfHead;
    DWORD dwHiddenSector;
    DWORD dwLargeSector;
    DWORD dwSectorPerFAT;
    WORD wActiveFAT : 4;
    WORD : 3;
    WORD wOnlyOneActive : 1;
    WORD : 8;
    WORD wFileSystemVersion;
    DWORD dwRootClusterNumber;
    WORD wFileSystemInfoSectorNumber;
    WORD wBootSectorBackup;
    DWORD dwReserved[3];
    BYTE bPhysicalDriveNumber;
    BYTE bReserved;
    BYTE bExtendedBootSignature;
    DWORD dwVolumeSerialNumber;
    CHAR szVolumeLabel[11];
    CHAR szSystemID[8];
} FAT32_DBR, *PFAT32_DBR;

#pragma pack()